import random as R
x=int((R.random()*100)%101)
n=0
while True:
    n+=1
    y=int(input("请输入一个数: "))
    if y==x:
        print("预测{:}次,你猜中了".format(n))
        break
    elif y < x:
        print("遗憾,太小了")
    else:
        print("遗憾,太大了")
